package com.ckf.login_wx.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;


@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("Odd")
public class Odd {

    @TableId(type = IdType.AUTO)
    private int id;
    private String cid;
    private String name2;
    private int odd;
    private int count;
    private Double total;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date time;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time2;
    private String phone;
    private String saisie;
    private String site;
    private String anq;
    private String tupian;
    private Double debt;
    private Double moneytotal;
    private Integer status;
    private Integer printstatus;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getName2() {
		return name2;
	}
	public void setName2(String name2) {
		this.name2 = name2;
	}
	public int getOdd() {
		return odd;
	}
	public void setOdd(int odd) {
		this.odd = odd;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public Date getTime2() {
		return time2;
	}
	public void setTime2(Date time2) {
		this.time2 = time2;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getSaisie() {
		return saisie;
	}
	public void setSaisie(String saisie) {
		this.saisie = saisie;
	}
	public String getSite() {
		return site;
	}
	public void setSite(String site) {
		this.site = site;
	}
	public String getAnq() {
		return anq;
	}
	public void setAnq(String anq) {
		this.anq = anq;
	}
	public String getTupian() {
		return tupian;
	}
	public void setTupian(String tupian) {
		this.tupian = tupian;
	}
	public Double getDebt() {
		return debt;
	}
	public void setDebt(Double debt) {
		this.debt = debt;
	}
	
	public Double getMoneytotal() {
		return total-debt;
	}
	
	public void setMoneytotal(Double moneytotal) {
		this.moneytotal = moneytotal;
	}
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Integer getPrintstatus() {
		return printstatus;
	}
	public void setPrintstatus(Integer printstatus) {
		this.printstatus = printstatus;
	}
	@Override
	public String toString() {
		return "Odd [id=" + id + ", cid=" + cid + ", name2=" + name2 + ", odd="
				+ odd + ", count=" + count + ", total=" + total + ", time="
				+ time + ", time2=" + time2 + ", phone=" + phone + ", saisie="
				+ saisie + ", site=" + site + ", anq=" + anq + ", tupian="
				+ tupian + ", debt=" + debt + "]";
	}
	
	
}
